Receives the message from the destination for this consumer. The object must be de-serializable from XML.
Namespace:
Apache.NMSAssembly: Apache.NMS (in Apache.NMS.dll)
Syntax
| Visual Basic |
|---|
<ExtensionAttribute> _ Public Shared Function Receive(Of T As Class) ( _ consumer As IMessageConsumer, _ timeout As TimeSpan _ ) As T |
| C# |
|---|
public static T Receive<T>( this IMessageConsumer consumer, TimeSpan timeout ) where T : class |
| Visual C++ |
|---|
[ExtensionAttribute] public: generic<typename T> where T : ref class static T Receive( IMessageConsumer^ consumer, TimeSpan timeout ) |
| JavaScript |
|---|
|
Type Parameters
- T